package com.jhgsys.internal.sypq.service;

import com.jhgsys.internal.sypq.entity.ProjectManager;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jhgsys.internal.sypq.entity.SypqProjectDto;

import java.util.List;

/**
 * 项目与经理对应表(一对多) Service接口
 *
 * @author ganjun
 * @date 2024-11-15 17:34:09
 */
public interface IProjectManagerService extends IService<ProjectManager> {
    /**
     * 查询（分页）
     * @author ganjun
     * @date 2024-11-15 17:34:09
     * @param request QueryRequest
     * @param projectManager projectManager
     * @return IPage<ProjectManager>
     */
    IPage<ProjectManager> findProjectManagerPage(QueryRequest request, ProjectManager projectManager);

    /**
     * 查询（所有）
     * @author ganjun
     * @date 2024-11-15 17:34:09
     * @param projectManager projectManager
     * @return List<ProjectManager>
     */
    List<ProjectManager> findProjectManagerList(ProjectManager projectManager);

    /**
    * 根据ID查询
    * @author ganjun
    * @date 2024-11-15 17:34:09
    * @param id
    * @return ProjectManager
    */
    ProjectManager findProjectManagerById(String id);

    /**
     * 新增
     * @author ganjun
     * @date 2024-11-15 17:34:09
     * @param projectManager projectManager
     */
    boolean createProjectManager(ProjectManager projectManager);

    /**
     * 修改
     * @author ganjun
     * @date 2024-11-15 17:34:09
     * @param projectManager projectManager
     */
    boolean updateProjectManager(ProjectManager projectManager);

    /**
     * 逻辑删除
     * @author ganjun
     * @date 2024-11-15 17:34:09
     * @param projectManager projectManager
     * @param projectManagerIds projectManagerIds
     */
    boolean deleteProjectManager(ProjectManager projectManager,String projectManagerIds);

    /**
    * 物理删除
    * @author ganjun
    * @date 2024-11-15 17:34:09
    * @param projectManagerIds projectManagerIds
    */
    boolean physicallyDeleteProjectManager(String projectManagerIds);

     boolean physicallyDeleteByProject(String  projectcode);
}
